
// 本地静态路由

import { t } from '/@/hooks/web/useI18n';
import { LAYOUT } from '/@/router/constant';
import type { AppRouteRecordRaw } from '/@/router/types';

// warehouse-business
export const TabOfWarehouseBusiness: AppRouteRecordRaw = {
  path: '/warehouse-business',
  name: 'TabOfWarehouseBusiness',
  component: LAYOUT,
  meta: {
    title: t('routes.myTabs.invt.default'),
  },
  children: [
    {
      path: 'tab/inbound/:code?/:isDetail?/:history?',
      name: 'TabOfInbound',
      component: () => import('/@/views/wms/warehouse-business/inbound/Tab.vue'),
      meta: {
        title: t('routes.warehouse-business.inbound.tab'),
      },
    },
    {
      path: 'tab/outbound/:code?/:isDetail?/:history?',
      name: 'TabOfOutbound',
      component: () => import('/@/views/wms/warehouse-business/outbound/Tab.vue'),
      meta: {
        title: t('routes.warehouse-business.outbound.tab'),
      },
    },
    {
      path: 'tab/move/:code?/:isDetail?/:history?',
      name: 'TabOfMove',
      component: () => import('/@/views/wms/warehouse-business/move/Tab.vue'),
      meta: {
        title: t('routes.warehouse-business.move.tab'),
      },
    },
    {
      path: 'tab/pandian/:code?/:isDetail?/:history?',
      name: 'TabOfPandian',
      component: () => import('/@/views/wms/warehouse-business/pandian/Tab.vue'),
      meta: {
        title: t('routes.warehouse-business.pandian.tab'),
      },
    },
  ],
};

export const TabOfUserinfo: AppRouteRecordRaw = {
  path: '/userinfo',
  name: 'Userinfo',
  component: LAYOUT,
  redirect: '/userinfo/index',
  meta: {
    title: t('routes.userinfo.default'),
    hideBreadcrumb: true,
    hideMenu: true,
    hideTab: false,
  },
  children: [
    {
      path: 'index',
      name: 'TabOfUserinfo',
      component: () => import('/@/views/userinfo/index.vue'),
      meta: {
        title: t('routes.userinfo.default'),
        hideBreadcrumb: true,
        hideMenu: true,
        hideTab: false,
      },
    },
  ],
};

// guide
export const TabOfGuide: AppRouteRecordRaw = {
  path: '/guide',
  name: '向导',
  component: LAYOUT,
  redirect: '/guide/index',
  meta: {
    title: '向导',
    hideBreadcrumb: true,
    hideMenu: true,
    hideTab: false,
  },
  children: [
    {
      path: 'index',
      name: 'TabOfGuide',
      component: () => import('/@/views/guide/init-guide.vue'),
      meta: {
        title: t('routes.help.guide'),
        hideBreadcrumb: true,
        hideMenu: true,
        hideTab: false,
      },
    },
    {
      path: 'index',
      name: 'TabOfGuideWorkflow',
      component: () => import('/@/views/guide/workflow-guide.vue'),
      meta: {
        title: t('routes.help.workflow'),
        hideBreadcrumb: true,
        hideMenu: true,
        hideTab: false,
      },
    },
  ],
};

